package com.castle.fortress.admin.member.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 会员可见权限表 实体类
 *
 * @author castle
 * @since 2023-02-14
 */
@Data
@ApiModel(value = "memberAuthority对象", description = "会员可见权限表")
public class MemberAuthorityDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "主键")
	@JsonProperty("id")
	private Long id;
	@ApiModelProperty(value = "权限类型(应用/文档/考试) 参照枚举AuthorityTypeEnum")
	@JsonProperty("type")
	private Integer type;
	@ApiModelProperty(value = "用户ID集合,逗号隔开")
	@JsonProperty("memberId")
	private String memberId;
	@ApiModelProperty(value = "用户组ID集合,逗号隔开")
	@JsonProperty("groupId")
	private String groupId;
	@ApiModelProperty(value = "部门ID集合,逗号隔开")
	@JsonProperty("deptId")
	private String deptId;
	@ApiModelProperty(value = "标签id集合，逗号隔开")
	@JsonProperty("tagId")
	private String tagId;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "限制ID(根据权限类型 控制限制啥的)")
	@JsonProperty("imposeId")
	private Long imposeId;
	@ApiModelProperty(value = "会员名称")
	@JsonProperty("memberName")
	private String memberName;
	@ApiModelProperty(value = "会员组名称")
	@JsonProperty("groupName")
	private String groupName;

}
